package com.haixiaoke.saas.enterprise.task;

import com.haixiaoke.saas.order.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 订单定时任务
 *
 * @author qixi
 * @date 2024/4/12
 */
@Component
public class OrderTask {


    @Autowired
    private IOrderService orderService;

    /**
     * 订单超时任务
     */
    @Scheduled(cron = "0 0 0 * * ? ")
    public void orderOvertimeTask() {
        orderService.orderOvertimeTask();
    }

    /**
     * 预订单签约超时任务
     */
    // //    V5.3.0 取消预订单签约超时任务
    // @Scheduled(cron = "0 0 0 * * ? ")
    // public void preOrderSignOvertimeTask() {
    //     orderService.preOrderSignOvertimeTask();
    // }




}
